<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>广东省传播平台-媒体计划投放量录入页</title>
<link rel="stylesheet" type="text/css" href="<%=path%>/css/common.css" />
<link rel="stylesheet" type="text/css" href="<%=path%>/css/tag.css" />
<script type="text/javascript" src="<%=path%>/js/jquery-1.7.2.js"></script>
<link href="<%=path%>/js/My97DatePicker/skin/WdatePicker.css" rel="stylesheet" type="text/css" />
<link type="text/css" href="<%=path%>/js/jquery-ui-1.8.21.custom/css/smoothness/jquery-ui-1.8.21.custom.css" rel="stylesheet" />
<script type="text/javascript" src="<%=path%>/js/jquery-ui-1.8.21.custom/js/jquery-ui-1.8.21.custom.min.js"></script>
<script type="text/javascript">
$(function(){
	//selectNav('nav7');
});
</script>
</head>

<body>


<!-- 顶部start -->
<jsp:include page="../common/top.jsp"></jsp:include>
<!-- 顶部end -->


<!-- 顶部start -->
<div id="main">
	<div class="body">
		<!-- 导航菜单 -->
		<jsp:include page="../common/nav.jsp"></jsp:include>
		<!-- 主体 -->
		<form method="post">
		<div class="main_body">
			<div id="add_div">
				<table class="table_add" style="width:100%;">
					<tr>
						<th width="148" style="width:150px;">年份：</th>
						<td width="226" style="width:225px;">
							<input  type="text" class="text" style="width:225px;" value="${sourcePlanYear.planYear}" readonly="readonly"/>						
						</td>
						<th width="77">&nbsp;</th>
						<th width="78">地市：</th>
						<td width="645">
						    <input  type="text" class="text" style="width:225px;" value="${sourcePlanYear.city}" readonly="readonly"/>	
						</td>
					</tr>
					<tr>
				        <th width="148" style="width:150px;">费用类型：</th>
						<td width="226" style="width:225px;">
						    <input  type="text" class="text" style="width:225px;" value="${sourcePlanYear.costType}" readonly="readonly"/>	
						</td>
						<th width="77">&nbsp;</th>
						<th width="148" style="width:150px;">费用子类：</th>
						<td width="226" style="width:225px;">
							<input  type="text" class="text" style="width:225px;" value="${sourcePlanYear.costSubtype}" readonly="readonly"/>	
						</td>
						<th width="77">&nbsp;</th>
				    </tr>					
				    <tr>
						<th width="148" style="width:150px;">媒体名称：</th>
						<td width="226" style="width:225px;">
							<input id="dialog_link" name="sourcePlanYear.mediaName" class="text" type="text"  style="width:225px;" value="${sourcePlanYear.mediaName}" readonly="readonly"/>
						</td>
				    </tr>
				</table>
			  <div id="list_div" style="margin:20px">	
				<table class="table_list" style="width: 100%">
					<tr class="bg1">
						<th rowspan="2">计划投放量总和</th>
						<th rowspan="2">固定资源</th>
						<th rowspan="2">浮动资源</th>
						<th rowspan="2">购买资源</th>
						<th colspan="3">赠送资源</th>
					</tr>
					<tr>
						<th>常规赠送资源：</th>
						<th>增量赠送资源：</th>
						<th>年底一次性返还资源：</th>
					</tr>
					<tr>
						<td><fmt:formatNumber value='${sourcePlanYear.planTotalAmount}' maxFractionDigits ="3"/></td>
						<td><fmt:formatNumber value='${sourcePlanYear.fixSourceAmount}' maxFractionDigits ="3"/></td>
						<td><fmt:formatNumber value='${sourcePlanYear.floatSourceAmount}' maxFractionDigits ="3"/></td>
						<td><fmt:formatNumber value='${sourcePlanYear.unPromotionAmount}' maxFractionDigits ="3"/></td>
						<td><fmt:formatNumber value='${sourcePlanYear.promotionAmount}' maxFractionDigits ="3"/></td>
						<td><fmt:formatNumber value='${sourcePlanYear.increPromotionAmount}' maxFractionDigits ="3"/></td>
						<td><fmt:formatNumber value='${sourcePlanYear.returnSourceAmount}' maxFractionDigits ="3"/></td>
					</tr>
			  </table> 
			  <br/>
			  <table class="table_list" style="width: 100%">
				    <tr>
					    <th colspan="13" style="text-align:left">固定资源计划投放总量<font color="#FF0000">
					    <fmt:formatNumber value='${sourcePlanYear.fixSourceAmount}' pattern="0.000"/></font></th>
					</tr>
					<tr class="bg">
						<th>月份</th>
						<th>1月</th>
						<th>2月</th>
						<th>3月</th>
						<th>4月</th>
						<th>5月</th>
						<th>6月</th>
						<th>7月</th>
						<th>8月</th>
						<th>9月</th>
						<th>10月</th>
						<th>11月</th>
						<th>12月</th>
					</tr>
					<tr>
					    <td>数额</td>
					    <td><fmt:formatNumber value='${putInPlanMonths[0].putIn01}' maxFractionDigits ="3"/></td>
						<td><fmt:formatNumber value='${putInPlanMonths[0].putIn02}' maxFractionDigits ="3"/></td>
						<td><fmt:formatNumber value='${putInPlanMonths[0].putIn03}' maxFractionDigits ="3"/></td>
						<td><fmt:formatNumber value='${putInPlanMonths[0].putIn04}' maxFractionDigits ="3"/></td>
						<td><fmt:formatNumber value='${putInPlanMonths[0].putIn05}' maxFractionDigits ="3"/></td>
						<td><fmt:formatNumber value='${putInPlanMonths[0].putIn06}' maxFractionDigits ="3"/></td>
						<td><fmt:formatNumber value='${putInPlanMonths[0].putIn07}' maxFractionDigits ="3"/></td>
						<td><fmt:formatNumber value='${putInPlanMonths[0].putIn08}' maxFractionDigits ="3"/></td>
						<td><fmt:formatNumber value='${putInPlanMonths[0].putIn09}' maxFractionDigits ="3"/></td>
						<td><fmt:formatNumber value='${putInPlanMonths[0].putIn10}' maxFractionDigits ="3"/></td>
						<td><fmt:formatNumber value='${putInPlanMonths[0].putIn11}' maxFractionDigits ="3"/></td>
						<td><fmt:formatNumber value='${putInPlanMonths[0].putIn12}' maxFractionDigits ="3"/></td>
					</tr>
			  </table>	
			  <br/>
			  <table class="table_list" style="width: 100%">
				    <tr>
					    <th colspan="13" style="text-align:left">浮动资源计划投放总量<font color="#FF0000">
					    <fmt:formatNumber value='${sourcePlanYear.floatSourceAmount}' pattern="0.000"/></font>
					    </th>
					</tr>
					<tr class="bg">
						<th>月份</th>
						<th>1月</th>
						<th>2月</th>
						<th>3月</th>
						<th>4月</th>
						<th>5月</th>
						<th>6月</th>
						<th>7月</th>
						<th>8月</th>
						<th>9月</th>
						<th>10月</th>
						<th>11月</th>
						<th>12月</th>
					</tr>
					<tr>
					    <td>数额</td>
                        <td><fmt:formatNumber value='${putInPlanMonths[1].putIn01}' maxFractionDigits ="3"/></td>
						<td><fmt:formatNumber value='${putInPlanMonths[1].putIn02}' maxFractionDigits ="3"/></td>
						<td><fmt:formatNumber value='${putInPlanMonths[1].putIn03}' maxFractionDigits ="3"/></td>
						<td><fmt:formatNumber value='${putInPlanMonths[1].putIn04}' maxFractionDigits ="3"/></td>
						<td><fmt:formatNumber value='${putInPlanMonths[1].putIn05}' maxFractionDigits ="3"/></td>
						<td><fmt:formatNumber value='${putInPlanMonths[1].putIn06}' maxFractionDigits ="3"/></td>
						<td><fmt:formatNumber value='${putInPlanMonths[1].putIn07}' maxFractionDigits ="3"/></td>
						<td><fmt:formatNumber value='${putInPlanMonths[1].putIn08}' maxFractionDigits ="3"/></td>
						<td><fmt:formatNumber value='${putInPlanMonths[1].putIn09}' maxFractionDigits ="3"/></td>
						<td><fmt:formatNumber value='${putInPlanMonths[1].putIn10}' maxFractionDigits ="3"/></td>
						<td><fmt:formatNumber value='${putInPlanMonths[1].putIn11}' maxFractionDigits ="3"/></td>
						<td><fmt:formatNumber value='${putInPlanMonths[1].putIn12}' maxFractionDigits ="3"/></td>
					</tr>
			  </table>	
			  <br/>
			  <table class="table_list" style="width: 100%">
				    <tr>
					    <th colspan="13" style="text-align:left">购买资源计划投放总量<font color="#FF0000">
					    <fmt:formatNumber value='${sourcePlanYear.unPromotionAmount}' pattern="0.000"/></font></th>
					</tr>
					<tr class="bg">
						<th>月份</th>
						<th>1月</th>
						<th>2月</th>
						<th>3月</th>
						<th>4月</th>
						<th>5月</th>
						<th>6月</th>
						<th>7月</th>
						<th>8月</th>
						<th>9月</th>
						<th>10月</th>
						<th>11月</th>
						<th>12月</th>
					</tr>
					<tr>
					    <td>数额</td>
                        <td><fmt:formatNumber value='${putInPlanMonths[2].putIn01}' maxFractionDigits ="3"/></td>
						<td><fmt:formatNumber value='${putInPlanMonths[2].putIn02}' maxFractionDigits ="3"/></td>
						<td><fmt:formatNumber value='${putInPlanMonths[2].putIn03}' maxFractionDigits ="3"/></td>
						<td><fmt:formatNumber value='${putInPlanMonths[2].putIn04}' maxFractionDigits ="3"/></td>
						<td><fmt:formatNumber value='${putInPlanMonths[2].putIn05}' maxFractionDigits ="3"/></td>
						<td><fmt:formatNumber value='${putInPlanMonths[2].putIn06}' maxFractionDigits ="3"/></td>
						<td><fmt:formatNumber value='${putInPlanMonths[2].putIn07}' maxFractionDigits ="3"/></td>
						<td><fmt:formatNumber value='${putInPlanMonths[2].putIn08}' maxFractionDigits ="3"/></td>
						<td><fmt:formatNumber value='${putInPlanMonths[2].putIn09}' maxFractionDigits ="3"/></td>
						<td><fmt:formatNumber value='${putInPlanMonths[2].putIn10}' maxFractionDigits ="3"/></td>
						<td><fmt:formatNumber value='${putInPlanMonths[2].putIn11}' maxFractionDigits ="3"/></td>
						<td><fmt:formatNumber value='${putInPlanMonths[2].putIn12}' maxFractionDigits ="3"/></td>
					</tr>
			  </table>	
			  <br/>
			  <table class="table_list" style="width: 100%">
				    <tr>
					    <th colspan="13" style="text-align:left">赠送资源计划投放总量<font color="#FF0000">
					    <fmt:formatNumber value='${sourcePlanYear.sumPromotionAmount}' pattern="0.000"/></font></th>
					</tr>
					<tr class="bg">
						<th>月份</th>
						<th>1月</th>
						<th>2月</th>
						<th>3月</th>
						<th>4月</th>
						<th>5月</th>
						<th>6月</th>
						<th>7月</th>
						<th>8月</th>
						<th>9月</th>
						<th>10月</th>
						<th>11月</th>
						<th>12月</th>
					</tr>
					<tr>
					    <td>数额</td>
						<td><fmt:formatNumber value='${putInPlanMonths[3].putIn01}' maxFractionDigits ="3"/></td>
						<td><fmt:formatNumber value='${putInPlanMonths[3].putIn02}' maxFractionDigits ="3"/></td>
						<td><fmt:formatNumber value='${putInPlanMonths[3].putIn03}' maxFractionDigits ="3"/></td>
						<td><fmt:formatNumber value='${putInPlanMonths[3].putIn04}' maxFractionDigits ="3"/></td>
						<td><fmt:formatNumber value='${putInPlanMonths[3].putIn05}' maxFractionDigits ="3"/></td>
						<td><fmt:formatNumber value='${putInPlanMonths[3].putIn06}' maxFractionDigits ="3"/></td>
						<td><fmt:formatNumber value='${putInPlanMonths[3].putIn07}' maxFractionDigits ="3"/></td>
						<td><fmt:formatNumber value='${putInPlanMonths[3].putIn08}' maxFractionDigits ="3"/></td>
						<td><fmt:formatNumber value='${putInPlanMonths[3].putIn09}' maxFractionDigits ="3"/></td>
						<td><fmt:formatNumber value='${putInPlanMonths[3].putIn10}' maxFractionDigits ="3"/></td>
						<td><fmt:formatNumber value='${putInPlanMonths[3].putIn11}' maxFractionDigits ="3"/></td>
						<td><fmt:formatNumber value='${putInPlanMonths[3].putIn12}' maxFractionDigits ="3"/></td>
					</tr>
				   </table>	
				   </br>
				   <table class="table_list" style="width: 100%">
					<tr class="bg" style="text-align:center;">
						<th colspan="16" style="font-size:15px; padding-left:18px;">变更记录</th>
					</tr>
					<tr style="text-align:left;">
						<td colspan="16">
							<ul>	
							<s:iterator value="logList" id="list">
								<li style="height:30px; line-height:30px;">&nbsp;&nbsp;&nbsp;&nbsp;${list.content}。</li>
							</s:iterator>
							</ul>
						</td>
					</tr>
			  </table>		
			</div>
		</div>
		<div style="margin:8px 0 0 150px;">
				<input type="button" class="btn-title" value="   返回   " onclick="javascript:history.go(-1);"/>
		</div>
	</div>
  </form>	
 </div>
</div>
<!-- 顶部end -->


<!-- 底部start -->
<div id="bottom">
	<div class="body">
		<label>版权所有&nbsp;&nbsp;&nbsp;&nbsp;2012东莞移动</label>
	</div>
</div>
<!-- 底部end -->
</body>
</html>